<?php

//depending on whether confirming an order is allowed before or after login it will be a part of either buyback_cart or buyback_checkout controllers

class Access_Resources{
	
//	User Module

	const USER_CREATE		=	"user:register";
	const USER_READ			=	"user:view";
	/**
	 * this controller has following actions
	 * 1. password reset
	 * 3. change details
	 * 4. change address
	 * 5. change contact info
	 * 6. change payment info
	 */
	const USER_UPDATE		=	"user:modify";
	const USER_ADD			=	"user:add";
	const USER_DELETE		=	"user:remove";
	
	const USER_LOGIN		=	"user:login";
	const USER_LOGOUT		=	"user:logout";
	
	/**
	 * This controller has following actions
	 * 1. index (make)
	 * 2. view
	 * 3. download 
	 * 4. shiplabel for user
	 */
	const USER_SHIPLABEL	=	"packing:slip";
//	const USER_RMSHIPLABEL	=	"user:removeshippinglabel";
	
	/**
	 * This controller has following actions
	 * 1. index (create)
	 * 2. view
	 */
	const USER_FEEDBACK		=	"user:feedback";
	const USER_RPLYFEEDBACK	=	"user:feedbackreply";
//	const USER_RMFEEDBACK	=	"user:removefeedback";
	
	const INDEX				=	"buyback:index";
	const SEARCH			=	"buyback:search";
	const OFFER				=	"buyback:offer";
	/**
	 * This controller has the following actions
	 * 1. add
	 * 2. update
	 * 3. removeItem
	 * 4. removeAll
	 * 5. view
	 * 6. confirm
	 */
	const CART				=	"buyback:cart";
	/**
	 * This controller has the following actions
	 * 1. index
	 */
	const CHECKOUT			=	"buyback:checkout";
	const CONFIRM			=	"buyback:confirm";
	
	const ORDER_READ		=	"order:view";
	const ORDER_UPDATE		=	"order:modify";
	const ORDER_DELETE		=	"order:delete";
	
	const ASSETS			=	"assets";
	
	const DOCTRINE			=	"doctrine:upload";
	
	const ADMIN_USER		=	"admin:user";
	const ADMIN_ORDER		=	"admin:order";
	const ADMIN_SHIP		=	"admin:shipping";
}